/**
 * 全局mixins对象, 在main.js中全局注入Vue
 * */

import http from './http'
import tools from './tools'
import methods from './methods'
import filters from './filters'
import sign from './http/sign'
import Echarts from 'echarts'

require('echarts/theme/macarons'); // 使用echarts主题

const mixins = {
  data() {
    return {
      http,
      tools,
      sign,
      Echarts,
    }
  },
  methods: {
    $err: http.$err,
    ...methods,
  },
  filters: {
    ...filters,
  },
};

export default mixins